package org.coopac.service.impl;
import java.util.List;
import org.coopac.dao.IGaranteDAO;
import org.coopac.model.CoopacGarante;
import org.coopac.service.IGaranteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
	@Transactional
	@Service("garanteService")
	public class GaranteService implements IGaranteService {
	@Autowired
	private IGaranteDAO garanteDAO;

	@Override
	public List<CoopacGarante> listar() {
	return garanteDAO.listar();
	}

	@Override
	public void save(CoopacGarante garante) {
		garanteDAO.save(garante);
	}

	@Override
	public void update(CoopacGarante garante) {
		garanteDAO.update(garante);
	}

	@Override
	public void delete(CoopacGarante garante) {
		garanteDAO.delete(garante);
	}

	@Override
	public CoopacGarante getById(int id){
		return garanteDAO.getById(id);
	}

}
